<?php
namespace data\sys\safe;
use \data\BaseData;
/**
 * 敏感操作记录日志
 */
class FilterlogData extends BaseData{
    
    
    /**
     * 添加记录
     */
    public function add($data){
        $check = [
            'addtime'      => ['val'=> SYS_TIME],
            'userrole'     => '',
            'userid'       => ['reg'=>'int'],        
            'table'        => '',
            'tableid'      => ['reg'=>'int'],
            'filter'       => '',
            'url'          => '',
        ];
        $save = $this->verifyData($check,$data);
        return M('sys_filterlog')->insertGetId($save);
    }
    
    
}